#ifndef __SLOTHTTPD_CONFIG_LOCATION_STATIC_LOCATION_HPP__
#define __SLOTHTTPD_CONFIG_LOCATION_STATIC_LOCATION_HPP__

#include <slothttpd/types.hpp>
#include <slothttpd/config/location/base_location.hpp>

#include <ostream>

#include <boost/property_tree/ptree.hpp>

namespace slothttpd {
namespace config {

class file_location :
        public base_location
{
public:
    file_location(const boost::property_tree::ptree &node, server &s, bool async);
    
    void apply(connection_ptr c);
    
public:
    bool send_file_cache_fd;
    const bool async_send;
};

std::ostream &operator<<(std::ostream &os, const file_location &loc);

}
}

#endif
